package com.byxm.wlgw.control.admin;

import java.util.List;

import com.byxm.wlgw.bean.SpppBean;
import com.byxm.wlgw.control.BaseAction;
import com.byxm.wlgw.service.SpppService;

public class Sppp_glAction extends BaseAction{
	private static final long serialVersionUID = 1L;
	SpppService spppService=new SpppService();
	
	private String splbfid;
	
	private SpppBean spppBean;//前台给的参数
	
	private List<SpppBean> lstSppp;//给前台的商品品牌名
	
	public String list(){
		try {
			lstSppp=spppService.getSppp(Integer.parseInt(splbfid));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "success_01";
	}
	/**
	 * 保存
	 */
	public String save(){
		try {
				spppService.saveSppp(spppBean);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "success_02";
	}
	
	
	/********setter getter************/
	
	public List<SpppBean> getLstSppp() {
		return lstSppp;
	}
	public void setLstSppp(List<SpppBean> lstSppp) {
		this.lstSppp = lstSppp;
	}
	public String getSplbfid() {
		return splbfid;
	}

	public void setSplbfid(String splbfid) {
		this.splbfid = splbfid;
	}
	public SpppBean getSpppBean() {
		return spppBean;
	}
	public void setSpppBean(SpppBean spppBean) {
		this.spppBean = spppBean;
	}
	
	
	

}
